projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c35f869
)
mmc: fsl_esdhc: fix f_max retrieval during init
author
Markus Niebel
<
[email protected]
>
Fri, 24 Oct 2014 09:44:53 +0000
(11:44 +0200)
committer
York Sun
<
[email protected]
>
Thu, 20 Nov 2014 02:17:12 +0000
(18:17 -0800)
for multi instance API we use struct fsl_esdhc_cfg to
pass the clock rate. Do not set f_max from global data,
since this is wrong for multi instance case.
Signed-off-by: Markus Niebel <
[email protected]
>
Acked-by: Stefano Babic <
[email protected]
>
Tested-by: Eric Nelson <
[email protected]
>
Reviewed-by: York Sun <
[email protected]
>
drivers/mmc/fsl_esdhc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/fsl_esdhc.c
b/drivers/mmc/fsl_esdhc.c
index 26406072482f202a8ca6e2fa6cd8a54c87fbea4c..8a1a461ccf5ae8c47bf0c1ca050839d9fd417ba4 100644
(file)
--- a/
drivers/mmc/fsl_esdhc.c
+++ b/
drivers/mmc/fsl_esdhc.c
@@
-610,7
+610,7
@@
int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
#endif
cfg->cfg.f_min = 400000;
- cfg->cfg.f_max = min(
gd->arch.
sdhc_clk, 52000000);
+ cfg->cfg.f_max = min(
cfg->
sdhc_clk, 52000000);
cfg->cfg.b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;